<template>
  <div class="app">
    <div class="main">
      <keep-alive>
        <router-view v-if="$route.meta.keepAlive"></router-view>
      </keep-alive>
      <router-view v-if="!$route.meta.keepAlive"></router-view>
    </div>
  </div>
</template>
<script>
  export default {
    name: 'Layout',
  }
</script>
<style lang="stylus" scoped>
.main
  max-width 640px
  margin 0 auto
</style>
